import Vue from 'vue'
import Router from 'vue-router'

import header from '@/components/header'
import footer from '@/components/footer'
import index from '@/components/index'
import main from '@/components/main'
import macaqueView from '@/components/macaqueView'
import ElementUI from "element-ui"
import region from '@/components/region'
import sample from '@/components/sample'
import neuron from '@/components/neuron'
import bapcanvas from '@/components/canvas'
import macaquecanvas from '@/components/macaquecanvas'
import cwz from '@/components/cwz'
import jzl from '@/components/jzl'
import cy from '@/components/cy'
import stereo from '@/components/stereo'

Vue.use(Router)
Vue.use(ElementUI)
Vue.component("region", region)
Vue.component("sample", sample)
Vue.component("neuron", neuron)
Vue.component("bapcanvas", bapcanvas)
Vue.component("macaquecanvas", macaquecanvas)
Vue.component("cwz", cwz)
Vue.component("jzl", jzl)
Vue.component("cy", cy)
Vue.component("stereo", stereo)
export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      redirect: '/main'
    },
    {
      path: '/header',
      name: 'header',
      component: header

    },
    {
      path: '/footer',
      component: footer
    },
    {
      path: '/index',
      component: index
    },
    {
      path: '/main',
      component: main
    },
    {
      path: '/cwz',
      component: cwz
    },
        {
      path: '/jzl',
      component: jzl
    },
        {
      path: '/cy',
      component: cy
    },
        {
      path: '/stereo',
      component: stereo
    },
    {
  path: '/macaqueView',
  component: macaqueView
}
  ]
})
